package com.wdb.common.base;

import java.io.Serializable;

public abstract class BaseQuery implements Serializable {
    private Integer offset = 0;

    private Integer limit = 10;

    private static final long serialVersionUID = 1L;

    public Integer getLimit() {
        return limit < 1 ? 10 : limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getOffset() {
        return offset < 0 ? 0 : offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }
}
